﻿<%@ Page Language="C#" %>
<script runat="server">
	protected override void OnLoad(EventArgs e) {
		base.OnLoad(e);
		string flag = Request["Flag"] + "";
		string pic = Request["pic"] + "";
		string imagePath = "~/images/Buttons/Delete.gif";
		switch( flag.ToLower()){
			case "n":
				imagePath = "~/images/Buttons/Blank1x1.gif"; break;
			case "y":
				switch(pic.ToLower()){
					case "":
						imagePath = "~/images/Lamp.gif"; break;
					case "x":
						imagePath = "~/images/Buttons/X_6x5.gif"; break;
					case "xx":
						imagePath = "~/images/Buttons/X_7x6.gif"; break;
				}
				break;
			default:
				imagePath = "~/images/Buttons/Delete.gif"; break;
		}
		Response.WriteFile(imagePath);
		//Response.ContentType = "image/gif";
		Response.End();
	}
</script>
